import { RouteRecordRaw } from 'vue-router'
export const Layout = () => import('@/layout/index.vue')

export const writeoffRoutes: RouteRecordRaw[] = [
  {
    path: '/writeoff',
    component: Layout,
    redirect: '/writeoff/writeoff',
    meta: {
      title: '订单与核销',
      icon: '',
      affix: false,
    },
    children: [
      {
        path: 'writeoff',
        component: () => import('@/views/writeoff/writeoff.vue'),
        name: 'Writeoff',
        meta: {
          title: '订单核销',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
      {
        path: 'allOrder',
        component: () => import('@/views/writeoff/allOrder.vue'),
        name: 'AllOrder',
        meta: {
          title: '所有订单',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
    ],
  },
]
